<%-- 
  - Author: Neha Chauhan
  - Date: 10-Apr-2011
  - Copyright Notice: TRAKHEES
  - Description: form.jsp
 --%>

<%@ include file="/WEB-INF/view/include.jsp"%>
<%@ page import="ae.pcfc.etks.online.web.*"%>
<!--<link
	href='<c:url value="/resources/styles/redmond/jquery-ui-1.8.10.custom.css"/>'
	rel="stylesheet" type="text/css" />
<link
	href='<c:url value="/resources/styles/validation/validationEngine.jquery.css"/>'
	rel="stylesheet" type="text/css" />
<link href='<c:url value="/resources/styles/validation/template.css"/>'
	rel="stylesheet" type="text/css" />
<link
	href='<c:url value="/resources/styles/validation/jquery.validity.css"/>'
	rel="stylesheet" type="text/css" />


<script language="Javascript"
	src='<c:url value="/resources/js/ui/jquery-ui-1.8.10.custom.min.js"/>'></script>
<script language="Javascript" charset="utf-8"
	src='<c:url value="/resources/js/validation/jquery.validate.min.js"/>'></script>
<script language="Javascript"
	src='<c:url value="/resources/js/validation/localization"/>/<spring:message code="page.js.validation"/>'></script>


<script language="Javascript" charset="utf-8" type="text/javascript"
	src='<c:url value="/resources/js/jquery.alerts.js"/>'></script>
<link rel=stylesheet type=text/css
	href='<c:url value="/resources/styles"/>/jquery.alerts.css' />



--><script type="text/javascript">
	$().ready(function() {
		
		//$("input:submit, input:reset, input:button, input:file").button();
		
		$("#InquireStatus").validate({
			onfocusout:false,
			onkeyup:false,
			onclick: false,				
			rules : {
				strReferenceNo : "required"
			},
			showErrors : function(errorMap, errorList) {

				var errors = '<ul>';
				var label;
				if (errorList.length) {
					$.each(errorMap, function(name, value) {
						label = $("label[for='" + name + "']").html();
						label = value + '[' + label + ']';
						errors = errors + '<li>' + label + '</li>';

					});
					errors = errors + '</ul>';
					jAlert('error', errors, '<spring:message code="label.errormessage" />');
				}
			}
		});

	});
</script>


<div id="container" dir='<spring:message code="page.dir"/>'
	align='<spring:message code="page.align"/>'>
	<form:form name="InquireStatus" id="InquireStatus" method="POST" 
			modelAttribute="<%=ConstantsAdmin.CLIENT_REGISTER_INQUIRESTATUS_MODEL_KEY %>">
			
			
			<spring:hasBindErrors
				name="<%=ConstantsAdmin.CLIENT_REGISTER_INQUIRESTATUS_MODEL_KEY %>">
				<script type="text/javascript">
					$(document)
							.ready(
									function() {
										jAlert(
												'error',
												'<li><form:errors path="*" delimiter="<li>"/>',
												'<spring:message code="label.errormessage" />');
									});
				</script>
			</spring:hasBindErrors>
			
	<div class="ui-widget_c ui-corner-all">
		<div class="ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix"><spring:message code="client.register.inquirestatus.request.form" /></div>
	    <div class="t_fin-black-txt"><br/><spring:message code="client.register.inquirestatus.message" /><br/><br/><br/></div>
		<div class="ui-widget_content_c t_form-left t_fin-black-txt">
			 <div class="fm-req">
			     <form:label path="strReferenceNo">
			     	<span class="t_star">*</span>
			         <spring:message code="client.register.inquirestatus.refnumber" />
			     </form:label>
			     <form:input path="strReferenceNo" id="strReferenceNo" size="30" maxlength="20" />
		              
			 </div>
	</div>			 
			 <br/>
			 <div id="fm-submit" class="fm-req">
					<input type="submit" name="continue" value="<spring:message code="label.button.continue" />" class="t_btns submit"/>
					<input type="reset" name="reset" value="<spring:message code="label.button.reset" />" class="t_btns reset"/>
	
		     </div>	
		   

	</div>
	</form:form>
</div>	